<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/include/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>用户信息维护</title>
<d:script id="jquery,jquery-cookie,om-ui" />
<d:css id="om-ui" />
<d:css path="static/style/common.css"/>
<script type="text/javascript">
	$(document).ready(function() {
		$(":input").attr("disabled","disabled");
	});
</script>
</head>
<body>
	<form class="ui-form">
		<table>
			<tr>
				<th>用户名:</th>
				<td><input type="text" name="username" value="${user.username }" /></td>
			</tr>
			<tr>
				<th>真实姓名:</th>
				<td><input type="text" name="fullName" value="${user.fullName }" /></td>
			</tr>
			<tr>
				<th>E-Mail:</th>
				<td><input type="text" name="email" value="${user.email }" /></td>
			</tr>
			<tr>
				<th>联系方式:</th>
				<td><input type="text" name="mobile" value="${user.mobile }" /></td>
			</tr>
			<tr>
				<th>所属部门:</th>
				<td>
				<input type="hidden" name="dept.id" value="${user.dept.id }"/>
				<input type="text" id="inputDeptName" name="deptName" value="${user.dept.name }" /></td>
			</tr>
			<tr>
				<th>角色:</th>
				<td>
				<input type="hidden" id="roleIdList" name="roleIdList" value="${roleIdList }"/>
				<input type="text" id="inputRoleNameList" name="roleNameList" value="${roleNameList}"/></td>
			</tr>
			<tr>
				<th>是否启用:</th>
				<td><input type="radio" value="1" name="enabled" ${user==null || user.enabled?"checked":""}>是  
				<input type="radio" value="0" name="enabled" ${user==null || user.enabled?"":"checked" }>否</td>
			</tr>
			<tr>
				<th>备注信息:</th>
				<td><textarea name="remark" style="width:200px;height:60px">${user.remark }</textarea></td>
			</tr>
		</table>
		</form>
</body>
</html>